#include "task.h"
#include "user.h"

struct rt_thread key_thread;
static rt_uint8_t key_stack[128];

struct rt_thread lcd_thread;
static rt_uint8_t lcd_stack[768];

void lcd_thread_entry(void *parameter);


void User_TaskInit(void)
{
    rt_thread_init(&key_thread, "keyThread", key_thread_entry, RT_NULL,
                   key_stack, sizeof(key_stack), 31, 10);
    rt_thread_startup(&key_thread);

    rt_thread_init(&lcd_thread, "lcdThread", lcd_thread_entry, RT_NULL,
                   lcd_stack, sizeof(lcd_stack), 30, 10);
    rt_thread_startup(&lcd_thread);
}

